package edu.stu.cs.software.family.customer.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import edu.stu.cs.software.family.base.service.impl.GenericManagerImpl;
import edu.stu.cs.software.family.customer.dao.CustomerDao;
import edu.stu.cs.software.family.customer.domain.Customer;
import edu.stu.cs.software.family.customer.service.CustomerManager;

@Component
public class CustomerManagerImpl extends GenericManagerImpl<Customer, Long> implements CustomerManager{

	CustomerDao customerDao;

	@Autowired
	public void setCustomerDao(CustomerDao customerDao) {
		this.customerDao = customerDao;
		this.dao = this.customerDao;
	}
	@Override
	public Customer findByCustomerName(String realName) {
		return customerDao.findByRealName(realName);
	}
}
